profile=light
if [ "$#" -gt "0" ]
then
    if [ "$1" = "light" -o "$1" = "full" ]
    then
        profile="$1"
    else
        echo "usage: $0 [light|full]"
        exit 1
    fi

fi


echo "================================"
echo "maven clean"
echo "================================"

mvn clean

echo "================================"
echo "build start, mode: $profile"
echo "================================"
mvn -Dmaven.test.skip=true package -P $profile

echo "================================"
echo "build done"
echo "================================"
